/*
 * 
 * LegendShop 多用户商城系统
 * 
 *  版权所有,并保留所有权利。
 * 
 */
package com.legendshop.oa.service;

import java.util.List;

import com.legendshop.dao.support.CriteriaQuery;
import com.legendshop.dao.support.PageSupport;
import com.legendshop.oa.constants.MailCategoryEnum;
import com.legendshop.oa.model.MailEntity;
import com.legendshop.oa.model.MailInfo;

/**
 * The Class MailEntityService.
 */
public interface MailEntityService  {

    public List<MailEntity> getMailEntity(String userName);

    public MailEntity getMailEntity(Long id);
    
    public void deleteMailEntity(MailEntity mailEntity);
    
    public Long saveMailEntity(MailEntity mailEntity);

    public void updateMailEntity(MailEntity mailEntity);

    public PageSupport getMailEntity(CriteriaQuery cq);

	public void saveMail(MailInfo task);

	MailEntity getMailEntity(String receiveMail, MailCategoryEnum type);

	public void clearMailCode(Long id);

	public PageSupport<MailEntity> getMailEntityPage(String curPageNO);
}
